package id.co.rho.scoring.cid.framework.math.evaluator.model;

/**
 * Created by IntelliJ IDEA.
 * User: bungrudi
 * Date: 9/14/11
 * Time: 11:58 AM
 */
public class UnaryOpValueNode implements MEValueNode {
    private MEValueNode operand;
    private Operator operator;

    private UnaryOpValueNode() {
    }

    public UnaryOpValueNode(MEValueNode operand, Operator operator) {
        this.operand = operand;
        this.operator = operator;
    }

    public MEValueNode getOperand() {
        return operand;
    }

    public Operator getOperator() {
        return operator;
    }

    @Override
    public MEValueNode[] getChildren() {
        return new MEValueNode[] {operand};
    }
}
